<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>pretty-text-underline</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        .container {
            background-color: #2396ef;
            color:#535455;
            padding: 8px 0;
        }
        .pretty-text-underline {
            display: inline;
            text-shadow: 1px 1px #f5f6f9,-1px 1px #f5f6f9,-1px -1px #f5f6f9,1px -1px #f5f6f9;
            background-image: linear-gradient(90deg,currentColor 100%,transparent 100%);
            background-position: bottom;
            background-repeat: no-repeat;
            background-size: 100% 1px;
        }
        .pretty-text-underline::selection {
            background-color: rgba(0,150,255,.3);
            text-shadow: none;
        }
    </style>
</head>
<body>
    <div class="container">
        <p class="pretty-text-underline">Pretty text underline without clipping descenders.</p>
    </div>
</body>
</html>